package DesignPattern.Composite;

/**
 * @Author self
 * @Date 2024/8/13 20:10
 */
public class Developer implements Employee {
    private String name;
    private String position;

    public Developer(String name, String position) {
        this.name = name;
        this.position = position;
    }

    @Override
    public void showEmployeeDetails() {
        System.out.println(name + " works as a " + position);
    }
}
